<template>
  <div class="app">
    <div class="top">添加疾病</div>

    <div class="box">
      <div class="center_box">
        <div class="keshi">
          <p>科室:</p>
          <input type="text" placeholder="请输入科室" v-model="index.keshi">
        </div>
        <p class="p1">该科室下已有疾病：湿疹、白癜风、荨麻疹等</p>

        <div class="jibing">
            <p>疾病:</p>
            <input type="text" v-model="index.jibing">
        </div>
        <div class="miaoshu">
            <p>描述(选填):</p>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <input type="text" style="width:300px;height:200px" v-model="index.miaoshu">
        </div>


        <div class="button">
            <button @click="store.add(index)">提交</button>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import { ref } from "@vue/reactivity";

import {useyiqing } from '../../../stores/counter'

var store = useyiqing()


var index = ref({
  keshi:"",
  jibing:"",
  miaoshu:""
})



</script>

<style lang="scss" scoped>
.app {
  width: 100%;
  height: 100%;

  .top {
    width: 100%;
    height: 100px;
    line-height: 100px;
    font-size: 24px;
    font-weight: 700;
    padding: 0 20px;
    box-sizing: border-box;
    background-color: white;
  }
  .box {
    width: 100%;
    height: 550px;
    background-color: rgba(128, 128, 128, 0.126);
    padding-top: 20px;
    .center_box {
      width: 85%;
      height: 100%;
      margin: 0 auto;
      background-color: white;
      padding: 50px 0;
      box-sizing: border-box;
    //   color: gray;
      .keshi{
        width: 100%;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        input{
            margin-left: 50px;
            outline: none;
            // border: none;
            width: 180px;
            padding: 5px 0;
        }
      }
      .p1{
        color: gray;
        width: 100%;
        text-align: center;
      }
      .jibing{
        width: 100%;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 20px;
        input{
            width: 180px;
            height: 25px;
            border-radius: 5px;
            border: 1px solid gray;
            outline: none;
            margin-left: 70px ;
        }
      }
      .miaoshu{
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 50px;
      }
      .button{
        width: 100%;
        height: 50px;
        // background-color: red;
        text-align: center;
        margin-top: 30px;
        button{
            width: 100px;
            height: 50px;
            background-color: rgba(0, 0, 255, 0.41);
            color: white;
        }
      }
    }
  }
}
</style>